package com.cloudsense.ftest.controller;


import com.cloudsense.ftest.pojo.Server;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/server")
public class ServerController {

    @Value("${ServerVersion}")
    private String ServerVersion;

    @RequestMapping("findServer")
    public Server findServer(){

        Server server = new Server();
        server.setServerName("测试服务器");
        server.setServerUsage("核心服务器");
        server.setServerVersion(ServerVersion);
        return server;
    }
}
